<h1>Change Your Profile</h1>

<?php echo error_messages_for('users')?>


<div id="tabPanel1" class='tab-pane'>    
        <div id="tabPage1" class='tab-page'>
        <h2 class='tab'>Details</h2>      
    
        <?php echo form_tag('profile',array('validation'=>true))?>
        <?php echo hidden_field('users','id')?>
<table border="0" cellspacing="5" cellpadding="5">
    <tr>
        <td>
            <label for='users_first_name'><span style='color:red'>*</span> First Name:</label>
                <?php echo text_field('users','first_name',array('alt'=>'blank', 'emsg'=>'Please enter first name'))?>

        <label for='users_last_name'><span style='color:red'>*</span> Last Name:</label>
            <?php echo text_field('users','last_name',array('alt'=>'blank', 'emsg'=>'Please enter last name'))?>

        <label for='users_email'><span style='color:red'>*</span> Email:</label>
            <?php echo text_field('users','email',array('alt'=>'email', 'emsg'=>'Please enter a valid email'))?></td>

        <td>
            <label for='users_user_password'>Old Password: <span style='font-size:xx-small'>(leave blank to keep same password)</span></label><?php echo password_field('users','user_password',array('alt'=>'length|6|bok'))?>

        <label for='users_new_password'>New Password:</label><?php echo password_field('users','new_password',array('alt'=>'length|6|bok'))?>

        <label for='users_user_password_confirm'>Confirm New Password:</label><?php echo password_field('users','user_password_confirm',array('alt'=>'equalto|users[new_password]','emsg'=>'Passwords must match'))?></td>
    </tr>
</table>
<br>
<p><?php echo submit_tag('Submit')?></p>
<?php echo end_form_tag()?>

</div>
</div>
<script type="text/javascript">
     setupAllTabs();
 </script>
